home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CUJ9209.ARJ / 1009020A < prev    next >
Text File  |  1992-07-08  |  257b  |  21 lines

  1. // LISTING 1
  2.  
  3. #ifndef JMPSTACK_H
  4. #define JMPSTACK_H
  5.  
  6. #include <setjmp.h>
  7.  
  8. class JmpStack {
  9.     enum {SIZE=100};
  10.     jmp_buf stack[SIZE];
  11.     int current;
  12.  
  13. public:
  14.     JmpStack() {current = -1;}
  15.  
  16.     jmp_buf& operator++();    // push
  17.     jmp_buf& operator--();    // pop
  18. };
  19.  
  20. #endif
  21.